package com.study.manage.utils;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

public class ListUtils {

    public static List<Map<String,Object>> convert(List<Object[]> list) {
    	
    	List<Map<String,Object>> tempList = new ArrayList<>();
    	for(int i=0;i<list.size();i++){
    		Map<String, Object> map = new HashMap<>();
    		Object[] c = list.get(i);
            for (int j = 0; j < c.length; j++) {
                map.put(j+"", c[j]);
            }
            tempList.add(map);
    	}
		return tempList;
    }

}
